package com.directv.drqp.filter;

import com.directv.drqp.init.TreeBuilderImpl;
import com.sstone.drq.Car;
import com.sstone.drq.Sample;

public class Filter {

	private static TreeBuilderImpl tbi = new TreeBuilderImpl();

	public <T> T execute(T object, String query) {
		// parse the query the do some stuff
		
		return null;
	}

	// this will be the main test
	public static void main(String[] args) {
		Sample s = new Sample();
		s.setName("MySample");
		s.setStuff("Stuf");

		Car car = new Car();
		car.setType("Benz");

		Car car2 = new Car();
		car2.setType("BMW");

		s.getCars().add(car);
		s.getCars().add(car2);

		Filter f = new Filter();
		f.execute(s, "sample.cars.type=Benz");

	}
}
